{extend name="public:default" /}

<!-- 搜索栏 -->
{block name="inputBtn"}

    <div class="layui-inline">
        <fieldset class="label_title">
            <legend>管理员昵称</legend>
            <input type="text" name="admin_log_admin_name" placeholder="点此输入" autocomplete="off" class="layui-input">
        </fieldset>
    </div>

    <div class="layui-inline">
        <fieldset class="label_title">
            <legend>IP段</legend>
            <input type="text" name="admin_log_admin_ip" placeholder="点此输入" autocomplete="off" class="layui-input">
        </fieldset>
    </div>

    <div class="layui-inline">
        <fieldset class="label_title">
            <legend>权限名称</legend>
            <input type="text" name="admin_log_rank_name" placeholder="点此选择" class="layui-input" id="test-laydate-range-datetime" lay-key="12" readonly>
        </fieldset>
    </div>

    <div class="layui-inline">
        <fieldset class="label_title">
            <legend>操作事件</legend>
            <input type="text" name="admin_log_event" placeholder="点此选择" class="layui-input" id="test-laydate-range-datetime" lay-key="12" readonly>
        </fieldset>
    </div>

    <div class="layui-inline">
        <fieldset class="label_title">
            <legend>操作内容</legend>
            <input type="text" name="admin_log_content" placeholder="点此选择" class="layui-input" id="test-laydate-range-datetime" lay-key="12" readonly>
        </fieldset>
    </div>

    <div class="layui-inline">
        <fieldset class="label_title">
            <legend>上次登陆时间</legend>
            <input type="text" name="admin_user_top_time" placeholder="点此选择" class="layui-input" id="test-laydate-range-datetime" lay-key="12" readonly>
        </fieldset>
    </div>
    
{/block}

<!-- 头工具栏 -->
{block name="tableTopBtn"}
    
{/block}

<!-- 行工具栏 -->
{block name="tableEndBtn"}

{/block}


<!-- js 执行方法 -->
{block name="script"}
<script>
    var isShow = function (d){
        return d ? '显示' : '隐藏';
    }

    var editList = window.location.pathname // 列表链接
    var editAdd = editList + 'Add' // 添加链接
    var editUp = editList + 'Up' // 修改链接
    var editDel = editList + 'Del' // 删除链接

    views.setUrl(editAdd,editDel,editUp).cols({
        url: editList,
        page: true,
        cols: [
            {type: 'checkbox', fixed: 'left'}

            ,{field:'id', title:'ID', align:'center'}
            ,{field:'admin_log_admin_name', title:'管理员昵称', align:'center'}
            ,{field:'admin_log_rank_name', title:'权限', align:'center'}

            ,{field:'admin_log_event', title:'操作事件', align:'center'}
            ,{field:'admin_log_content', title:'操作内容', align:'center'}
            ,{field:'admin_log_admin_ip', title:'IP段', align:'center'}
            
            ,{field:'admin_log_is_show', title:'显示隐藏', align:'center', templet:function(d){ return d.admin_user_is_show ? '显示' : '隐藏' ;}}
            ,{field:'admin_log_times', title:'添加时间', align:'center', templet:function(d){ return d.admin_user_times ? layui.util.toDateString(d.admin_user_times * 1000) : '' ; }}

            ,{fixed: 'right', title:'操作', toolbar: '#test-table-toolbar-barDemo', width:120}
        ]

    }).toolbar(function(obj,data,table){
        // 头工具栏事件

    }).tool(function(obj,table){
        //监听行工具事件
    }).get();

    
    
</script>
{/block}
  
  